﻿#ifndef CModelMng_H
#define CModelMng_H
/********************************************************************************
** @ Date:2025/09/08
** @ Author: HanJiaXin
** @ Description:模块管理
** @ Version:1.0.0
** @ ClassName:CModelMng
** @ Fun:
********************************************************************************/
#include <QObject>
#include "SensorSeriesDevice.h"
#include "CIsapiServer.h"
#include "CExportResultTh.h"
#include "CLogOper.h"

class CModelMng  : public QObject
{
	Q_OBJECT

public:
	static CModelMng& instance()
	{
		static CModelMng instance;
		return instance;
	}

	QMap<QString, SensorSeriesDevice*> m_mapDev;
	bool m_bDbInit = false;

private slots:
	void slotNewRequest(QByteArray &requestData);

private:
	CModelMng();
	~CModelMng();
	void initCfg();
	void extractJsonFromMultipart(QByteArray requestData);
	CIsapiServer* m_pIsApiServer = nullptr;
	CExportResultTh* m_pExportResultTh = nullptr;

};

#endif